/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/<a href="https://www.kaaction.com">KAA</a>"><a href="https://www.kaaction.com">KAA</a></a> All rights reserved.
 */
package com.kaaction.modules.ka.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.kaaction.common.persistence.CrudDao;
import com.kaaction.common.persistence.annotation.MyBatisDao;
import com.kaaction.modules.ka.entity.ProductManage;
import com.kaaction.modules.ka.entity.Statistics;

/**
 * 货品管理DAO接口
 * @author huanghaiming
 * @version 2017-04-25
 */
@MyBatisDao
public interface ProductManageDao extends CrudDao<ProductManage> {


	int getCount(ProductManage productManage);

	int getAmount(ProductManage productManage);

	void deleteId(ProductManage productManage);

	void updateId(ProductManage productManage);

	String getEqualProductId(ProductManage productManage);

	void insertProduct(ProductManage productManage);

	void updateProduct(ProductManage productManage);

	void insertroductOut(ProductManage productManage);

	void updateMaterialDetails(ProductManage productManage);

	ProductManage getProductManage(@Param("id")String id, @Param("flag")String flag);

	int selectCount(@Param("id")String id, @Param("state")String state);

	List<ProductManage> selectBatchOut(List<String> list);

	List<ProductManage> selectBatchSoldOut(List<String> list);

	void insertProInstockDtl(ProductManage productManage);

	Statistics selStatistics(ProductManage productManage);

}